package com.hzy.orderSystem.service.impl;

import com.hzy.orderSystem.dao.SupportDao;
import com.hzy.orderSystem.entities.Support;
import com.hzy.orderSystem.entities.User;
import com.hzy.orderSystem.service.SupportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 小宝
 * @create 2021/4/16 17:13
 */
@Service
public class SupportServiceImpl implements SupportService {
    @Autowired
    SupportDao supportDao;

    @Override
    public Support getUserByUsernameAndPassword(String username, String password) {
        return supportDao.getUserByUsernameAndPassword(username, password);
    }

    @Override
    public int updateSupport(Support support) {
        return supportDao.updateSupport(support);
    }
}
